package com.lzdongrui.backend.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lzdongrui.common.annotation.Excel;
import com.lzdongrui.common.core.domain.BaseEntity;

/**
 * 文件资源
对象 file_resources
 * 
 * @author ruoyi
 * @date 2023-06-12
 */
public class FileResources extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 原名称 */
    @Excel(name = "原名称")
    private String oldName;

    /** 改名后的名称 */
    @Excel(name = "改名后的名称")
    private String name;

    /** 文件大小,单位字节 */
    @Excel(name = "文件大小,单位字节")
    private Long size;

    /** 文件后缀 */
    @Excel(name = "文件后缀")
    private String suffix;

    /** 用于存储多文件id */
    private String fileIds;

    /** 存放路径 */
    @Excel(name = "存放路径")
    private String path;

    /** 文件数据类型 */
    @Excel(name = "文件数据类型")
    private String fileDataType;

    /** 操作人ID */
    @Excel(name = "操作人ID")
    private Long userId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOldName(String oldName) 
    {
        this.oldName = oldName;
    }

    public String getOldName() 
    {
        return oldName;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSize(Long size) 
    {
        this.size = size;
    }

    public Long getSize() 
    {
        return size;
    }
    public void setSuffix(String suffix) 
    {
        this.suffix = suffix;
    }

    public String getSuffix() 
    {
        return suffix;
    }
    public void setPath(String path) 
    {
        this.path = path;
    }

    public String getPath() 
    {
        return path;
    }
    public void setFileDataType(String fileDataType) 
    {
        this.fileDataType = fileDataType;
    }

    public String getFileDataType() 
    {
        return fileDataType;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("oldName", getOldName())
            .append("name", getName())
            .append("size", getSize())
            .append("suffix", getSuffix())
            .append("path", getPath())
            .append("fileDataType", getFileDataType())
            .append("userId", getUserId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    public String getFileIds() {
        return fileIds;
    }

    public void setFileIds(String fileIds) {
        this.fileIds = fileIds;
    }
}
